#pragma once
#include <string>
class Salaried
{
public:
    Salaried() = default;
    explicit Salaried(double salary);
    ~Salaried() = default;
    double earnings() const;
    std::string toString() const;

private:
    double m_salary{ 0.0 };
};